﻿<%@ Page Language="C#" MasterPageFile="~/GiaoVien/MasterPageGiaoVien.master" AutoEventWireup="true" CodeFile="CapNhapThongTinGiaoVien.aspx.cs" Inherits="GiaoVien_CapNhapThongTinGiaoVien" Title="Untitled Page" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="ajt" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajt1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<ajt:ScriptManager ID="ScriptManager1" runat="server">
</ajt:ScriptManager>

<ajt:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<fieldset runat="server">
<legend > Thông tin cá nhân</legend>
<asp:DataList ID="ItemsList" runat="server" CellPadding="3" CellSpacing="0" GridLines="Both"
            OnCancelCommand="Cancel_Command"  OnEditCommand="Edit_Command"
            OnUpdateCommand="Update_Command"  >
            <HeaderStyle BackColor="#aaaadd" />
            <AlternatingItemStyle BackColor="Gainsboro" />
            <EditItemStyle BackColor="yellow" />
            <HeaderTemplate >
              <h2 align="center" style=" font-family :MS Serif ">Thông tin giáo viên</h2>  
            </HeaderTemplate>
            <ItemTemplate>
                 
                 <table style="backcolor:#cc0000; width:700px">
        <tr>
            <td style="width: 153px; bordercolor:#cc0000">
            Tên giáo viên :    
 
            </td>
            <td style="width: 547px; bordercolor:#ff0000">
            <%# DataBinder.Eval(Container.DataItem, "TenGiaoVien")%>
            </td>
            
        </tr>
    <tr>
        <td  style="width: 153px; bordercolor:#cc0000">
        Chức danh :    
        </td>
  
        <td style="width: 547px; bordercolor:#ff0000">
            <%# DataBinder.Eval(Container.DataItem, "ChucDanh")%>
        </td>
    </tr>
        <tr>
            <td style="width: 153px; bordercolor:#cc0000">
            Học hàm :    
        
            </td>
            <td style="width: 547px; bordercolor:#ff0000">
            <%# DataBinder.Eval(Container.DataItem, "HocHam")%>
            </td>
            
        </tr>
        
        <tr>
            <td style="width: 153px;  bordercolor:#cc0000">
            Học vị :    
        
            </td>
            <td style="width: 547px; bordercolor:#ff0000">
            <%# DataBinder.Eval(Container.DataItem, "HocVi")%>
            </td>
            
        </tr>
        
        <tr>
            <td style="width: 153px; bordercolor:#cc0000">
            Email :    
        
            </td>
            <td style="width: 547px; bordercolor;#ff0000">
            <%# DataBinder.Eval(Container.DataItem, "Email")%>
            </td>
            
        </tr>
        
        <tr>
            <td style="width: 153px; bordercolor;#cc0000">
            Điện thọai :    
        
            </td>
            <td style="width: 547px; bordercolor;#ff0000">
            <%# DataBinder.Eval(Container.DataItem, "DienThoai")%>
            </td>
            
        </tr>
        
        <tr>
            <td style="width: 153px; bordercolor:#cc0000">
            Hướng nghiên cứu :    
        
            </td>
            <td style="width: 547px; bordercolor:#ff0000">
            <%# DataBinder.Eval(Container.DataItem, "HuongNghienCuu")%>
            </td>
            
        </tr>
        
        <tr>
            <td style="width: 153px; bordercolor:#cc0000">
            Nơi công tác :    
        
            </td>
            <td style="width: 547px; bordercolor:#ff0000">
            <%# DataBinder.Eval(Container.DataItem, "NoiCongTac")%>
            </td>
            
        </tr>
        
         <tr>
            <td style="width: 153px; bordercolor:#cc0000">
            Bộ môn :    
        
            </td>
            <td style="width: 547px; bordercolor:#ff0000">
            <%# DataBinder.Eval(Container.DataItem, "TenBoMon")%>
            </td>
            
        </tr>
        
        
    </table>
                <asp:LinkButton ID="EditButton" runat="server" CommandName="Edit" Text="Edit">
                </asp:LinkButton>
            </ItemTemplate>
            
            
            
            <EditItemTemplate>
                  <table style="bordercolor:#ff0000">
        
    
    
    
        <tr>
            <td style="width: 153px; bordercolor:#cc0000">
            Tên giáo viên :
 
            </td>
            <td style="width: 547px; bordercolor:#ff0000">
            
                <asp:TextBox Width="300" ID="TenGiaoVien" runat="server" Text=' <%# DataBinder.Eval(Container.DataItem, "TenGiaoVien")%>'></asp:TextBox>
           
            </td>
            
        </tr>
    <tr>
        <td  style="width: 153px; bordercolor:#cc0000">
        Chức danh :    
 </td>
  
        <td  style="width: 547px:bordercolor:#ff0000">
        
            <asp:TextBox Width="300" ID="ChucDanh" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ChucDanh")%>'></asp:TextBox>
        
        
        </td>
    </tr>
        <tr>
            <td style="width: 153px; bordercolor:#cc0000">
            Học hàm :    
        
            </td>
            <td style="width: 547px; bordercolor:#ff0000">
            
                <asp:TextBox Width="300" ID="HocHam" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "HocHam")%>'></asp:TextBox>
               
             
            </td>
            
        </tr>
        
        <tr>
            <td style="width: 153px; bordercolor:#cc0000">
            Học vị :    
        
            </td>
            <td style="width: 547px; bordercolor:#ff0000">
            
                <asp:TextBox Width="300" ID="HocVi" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "HocVi")%>'></asp:TextBox>
               
             
            </td>
            
        </tr>
        
        
        <tr>
            <td style="width: 153px" >
            Email :    
        
            </td>
            <td style="width: 547px" >
            
                <asp:TextBox Width="300" ID="Email" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Email")%>'></asp:TextBox>
               
             
            </td>
            
        </tr>
        
        
        <tr>
            <td style="width: 153px; bordercolor:#cc0000">
            Điện thọai :    
        
            </td>
            <td style="width: 547px; bordercolor:#ff0000">
            
                <asp:TextBox Width="300" ID="DienThoai" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "DienThoai")%>'></asp:TextBox>
               
             
            </td>
            
        </tr>
        
        <tr>
            <td style="width: 153px; bordercolor:#cc0000">
            Hướng nghiên cứu :    
        
            </td>
            <td style="width: 547px; bordercolor:#ff0000">
            
                <asp:TextBox Width="300" ID="HuongNghienCuu" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "HuongNghienCuu")%>'></asp:TextBox>
               
             
            </td>
            
        </tr>
        
        <tr>
            <td style="width: 153px; bordercolor:#cc0000">
            Nơi công tác :    
        
            </td>
            <td style="width: 547px; bordercolor:#ff0000">
            
                <asp:TextBox Width="300" ID="NoiCongTac" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "NoiCongTac")%>'></asp:TextBox>
               
             
            </td>
            
        </tr>
        
        <tr>
            <td style="width: 153px; bordercolor:#cc0000">
            Mã bộ môn :    
        
            </td>
            <td style="width: 547px; bordercolor:#ff0000">
                <asp:DropDownList ID="ddlBoMon" runat="server" DataTextField="TenBoMon" DataValueField="MaBoMon" 
                    DataSource='<%# LayMangBoMon() %>' >
                
                </asp:DropDownList>
                 
            </td>
            
        </tr>         
        
    </table>
                <asp:LinkButton ID="UpdateButton" runat="server" CommandName="Update" Text="Update">
                </asp:LinkButton>
                <asp:LinkButton ID="CancelButton" runat="server" CommandName="Cancel" Text="Cancel">
                </asp:LinkButton>
            </EditItemTemplate>
        </asp:DataList>
 
 </fieldset>

 </ContentTemplate>

</ajt:UpdatePanel>
 

</asp:Content>

